package com.shpng.cheapenglish.entity;

import com.shpng.cheapenglish.db.Word;

public class SWord {

	private Word dbWord;

	public SWord(Word word) {
		dbWord = word;
	}

	public String getWordString() {
		return dbWord.getWordString();
	}

	public void setWordString(String wordString) {
		dbWord.setWordString(wordString);
	}

	public long getId() {
		return dbWord.getId();
	}

	public Word getWord() {
		return dbWord;
	}

	public String toJsonString() {
		StringBuilder sb = new StringBuilder();
		sb.append("{\"id\":");
		sb.append(getId());
		sb.append(",\"word\":\"");
		sb.append(getWordString());
		sb.append("\"}");
		return sb.toString();
	}

}
